<!DOCTYPE HTML>
<html><head>
    <meta charset="utf-8">
    <title>Testcase for bug 1226278</title>
    <style type="text/css">

fieldset {
  overflow-clip-box: content-box;
  overflow: hidden;
  padding: 20px;
  background: url() content-box;
  height: 20px;
}

div { margin-top:20px; height:40px; background:red; }
    </style>
</head>
<body>

<pre>There should be no red areas.</pre>

<fieldset><legend>LEGEND</legend><div>FAIL</div></fieldset>
<fieldset><div>FAIL</div></fieldset>

</body>
</html>
